package bookManager;

/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-11-29
 * Time:17:15
 */
//通过一个Book对象,来表示Book表中的一条记录

public class Book {
    private int bookId;
    private String name;
    private String author;
    private int price;
    private String type;
    private boolean isB0rrowed;

    public int getBookId() {
        return bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public boolean isB0rrowed() {
        return isB0rrowed;
    }

    public void setB0rrowed(boolean b0rrowed) {
        isB0rrowed = b0rrowed;
    }
    public Book(int bookId,String name,String author,int price,String type,boolean isBorrowed){
        this.bookId = bookId;
        this.author = author;
        this.name = name;
        this.price = price;
        this.type = type;
        this.isB0rrowed = isBorrowed;
    }
    public  Book(){

    }
    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", price=" + price +
                ", type='" + type + '\'' +
                ", isB0rrowed=" + isB0rrowed +
                '}';
    }
}
